//
//  ShoppingCartViewCell.h
//  share_business
//
//  Created by 吴于凌 on 2017/9/6.
//  Copyright © 2017年 wyl. All rights reserved.
//

#import "BaseTableViewCell.h"

#import <UIKit/UIKit.h>

@class ShoppingCartViewCell;
@protocol ShoppingCellDelegate <NSObject>

/**
 *  cell关于数量编辑的代理方法
 *
 *  @param cell    cell
 *  @param countBt cell加减数量按钮
 */
- (void)shoppingCellDelegateForGoodsCount:(ShoppingCartViewCell *)cell WithCountButton:(UIButton *)countBt;

//-(void)deleteCell:(ShopCartModel *)model ;
//
//-(void)chooseCell:(ShopCartModel *)model ;
//
//-(void)unChooseCell:(ShopCartModel *)model ;

-(void)numberChageCell:(ShoppingCartViewCell *)cell ;

-(void)updateAllTableView ;
@end

@interface ShoppingCartViewCell : UITableViewCell

/**商品已选数量*/
@property(nonatomic,assign)NSInteger chooseCount;

/**cell代理对象*/
@property(nonatomic,weak)id<ShoppingCellDelegate> delegate;

/**添加按钮*/
@property (nonatomic,strong) UIButton *addBtn;
/**减少按钮*/
@property (nonatomic,strong) UIButton *reduceBtn;


+ (instancetype) cellWithTableView :(UITableView *)tableView;

//- (void)setModel:(ShopCartModel *)model ;

-(void)changeType:(BOOL)isEdit ;
@end
